package com.wn.cl.park.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author yellow docker
 * @since 2025-03-13
 */
@Getter
@Setter
  @ApiModel(value = "Order对象", description = "")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId
      private Long id;

      @ApiModelProperty("前缀-id")
      private String orderNum;

    private BigDecimal totalPrice;

    private Long userId;

    private Integer addressId;

    @TableField(fill = FieldFill.INSERT)  //在插入操作的时候填充
    private LocalDateTime createTime;

      @ApiModelProperty("0 - 待支付	1 - 支付成功	2 - 待服务	3 - 服务中	4 - 服务完成	5 - 待评价	6 - 已评价	7 - 取消	8 - 退款中	9 - 退款成功")
      private Integer state;

    @TableField(fill = FieldFill.INSERT_UPDATE)  //在插入和更新时填充
    private LocalDateTime updateTime;


}
